<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core"  prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt"  prefix="fmt"%>	
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %>	
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/style.css">
<title>八维贴吧</title>
</head>
<body>
  <!-- 包含header.jsp -->
  <jsp:include page="/WEB-INF/view/common/header.jsp"/>
  
  <!-- ///////////////////////////////自己开发部分中间部分开始/////////////////////////// -->
  
    <div class="container">
        <div class="row">
                    <div class="card" style="background-color: white">
                        <div class="card-header">
                            <b>欢迎光临</b>
                        </div>
                        <div class="card-body" style="display: flex">
                            <div class="col3">&nbsp;</div>
                            <div class="col6">
                                <form:form action="${pageContext.request.contextPath }/login" modelAttribute="user" method="post">
                                    <table class="table-borderless">
                                        <tr><td width="20%" nowrap="nowrap"> </td><td width="80%"><span style="color: red">${message}</span></td></tr>
                                        <tr><td align="right">　用户名</td><td><form:input path="userName"/></td></tr>
                                        <tr><td align="right">　密　码</td><td><form:password path="password"/></td></tr>
                                        <tr><td> </td><td><button class="btn btn-success">登录</button></td></tr>
                                    </table>
                                </form:form>
                            </div>
                            <div class="col3">&nbsp;</div>
                        </div>
                    </div>
            </div>
        </div>
    
    <br/>
    <br/>
    <br/>
  
  
  
  
  <!-- ///////////////////////////////自己开发部分中间部分开始/////////////////////////// -->
  
  <!-- jsp包含尾部footer.jsp -->
  <jsp:include page="/WEB-INF/view/common/footer.jsp"/>
</body>
</html>